package com.siqi.hr.system.custom.utils;

import java.util.Comparator;

public class MyComparator implements Comparator<String> {
	public int compare(String o1, String o2) {
		String a = o1;
		String b = o2;
		try {
			Integer t1 = Integer.valueOf(a);
			Integer t2 = Integer.valueOf(b);
			return t1.intValue() - t2.intValue();
		} catch (Exception e) {
		}
		return a.compareTo(b);
	}
}
